import Cookies from 'js-cookie'
const TokenKey = 'loginToken'

export function getToken () {
  if (process.env.NODE_ENV === 'development') {
    return '02c410f3-5879-472b-86bb-1ee82a1bb0e3' // 永久token
  }
  return Cookies.get(TokenKey)
}
export function setToken (token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}
